package top.songxs.gmall.product.rpc.biz.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.songxs.gmall.product.mapper.BaseCategory1Mapper;
import top.songxs.gmall.product.rpc.biz.CategoryFeignRpcService;
import top.songxs.gmall.product.view.CategoryView;
import top.songxs.gmall.product.vo.CategoryVo;

import java.util.List;

@Service
public class CategoryFeignRpcServiceImpl implements CategoryFeignRpcService {

    @Autowired
    private BaseCategory1Mapper baseCategory1Mapper;
    @Override
    public List<CategoryVo> findAllCategoryTree() {
        return baseCategory1Mapper.findAllCategoryTree();
    }

    @Override
    public CategoryView findAllCategory(Long skuId) {


        return baseCategory1Mapper.findAllCategory(skuId);
    }
}
